package com.yeban.pattem.proxy.cglib;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/6
 */
public class Test {

    public static void main(String[] args) {

        // 目标对象
        BankService target = new BankService();
        // 代理对象
        BankService proxy = new CglibProxyBankLoginService(target).getProxy();
        // 执行方法
        proxy.login(1L, "123");
        proxy.register(22L, "ad", "123456");
    }
}
